package com.czh.auth.domain.convert;

import com.czh.auth.domain.entity.AuthUserBO;
import com.czh.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author caozaihui
 * @version 1.0
 * @since 2024/8/28 上午 9:48
 */
@Mapper
public interface AuthUserDomainConverter {
    AuthUserDomainConverter INSTANCE  = Mappers.getMapper(AuthUserDomainConverter.class);
    /**
     * AuthUserBO转换为AuthUser
     */
    AuthUser convert(AuthUserBO authUserBO);

    AuthUserBO convert(AuthUser authUser);

    List<AuthUserBO> convert(List<AuthUser> authUserList);
}
